import { useStore } from '@/store'
// 获取当前用户的权限
export function UsePermission(pageName: string, hanlderName: string) {
  const store = useStore()
  const perMissions = store.state.login.perMissions
  const verifyPm = `system:${pageName}:${hanlderName}`
  // !! === Boolean()
  return !!perMissions.find((item) => item === verifyPm)
}
